package io.plus.engine.pulse;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.atomic.AtomicLong;

@Slf4j
@Data
public class PacketMetadata {

    private static final AtomicLong id = new AtomicLong();

    private Long packetId = id.incrementAndGet();
    /**
     * 本packet在解码时，消耗的字节数
     */
    private int byteCount = 0;


    private PacketTag packetTag = null;

    /**
     * 同步发送时，需要的同步序列号
     */
    private Integer synchronismSerialNumber = 0;


}
